 obj->unequip();

 target->reset_action();






























set_skill("stick",2260+10*random(laa));
 set_skill("xingyi-stick",2260+10*random(laa));
 map_skill("stick","xingyi-stick");



carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");
carry_object(__DIR__"obj/qiankun");



 command("unwield all");
 command("wield stick");
 command("enable stick xingyi-stick");
 command("perform yinyangling");
 command("perform menghuantianluo");
 command("unwield all");
command("wield blade");
command("exert roar");


void init()
{
 
  object me;

  ::init();
  if( interactive(me = this_player()) && !is_fighting() 
	  && living(me) ) {
    call_out("greeting", 1, me);
  }

}

void greeting(object me)
{
  
  object ob = this_object(); 
  if( !me || environment(me) != environment() ) return;
      kill_ob(me);
      me->kill_ob(ob);
      return;
 
}



varargs void invocation(int exp,int life_bonus,object who)
{
        exp = exp/3*3;
//        ::invocation(exp,life_bonus,who);
        }
        
void smart_fight() {
 object me;
 me = this_object();
 
 if (query_temp("weapon")) { 
                if (random(5))
{
                    {
	        command("enforce 500");
 command("unwield all");
command("wield sword");
command("enable sword qixiu-jian");
  command("perform zxzx");
  command("perform jianxi");
command("perform qijian");
command("enable sword canxin-jian");
command("perform xiangsi");
command("perform xiaoyao");
command("unwield sword");
command("wield blade");
command("enable blade kugu-blade");
command("perform pozhan");
command("perform du");
 command("enable blade ittouryu");
  command("perform gobankiri");
  command("perform hyakki");
command("perform duomingqisha");
command("perform tianlangshixue");


	       	 }


}
                else
                       

 {

 command("enforce 500");
 command("unwield all");
command("wield sword");
command("enable sword qixiu-jian");
  command("perform zxzx");
  command("perform sishen");
command("perform kuangsha");
command("enable sword mindsword");
command("perform jianqi");
command("perform tonggui");
command("perform yujian");
command("unwield sword");
command("enable unarmed yinfeng-zhua");
command("perform yinfeng");
 command("enable unarmed kongshoudao");
  command("perform shimon");
command("perform yaozhan");
command("wield blade");
command("enable blade ittouryu");
  command("perform hyakki");
command("perform duomingqisha");
command("perform tianlangshixue");






	       	 }


                }
 else { 
                     command("unwield all");
                        command("enforce 560");
 command("enable unarmed moyun-shou");
  command("perform pofuchenzhou");
  command("perform zhangxinlei");
 command("enable unarmed cuixin-zhang");
  command("perform cuixin");
command("enable unarmed yinfeng-zhua");
command("perform yinfeng");
command("enable unarmed kongshoudao");
command("perform yaozhan");
command("perform shimon");
command("enable unarmed lianhuan-zhang");
command("perform nianhua");



 }
}

